<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jstl/fn.tld" prefix="fn"%>
<%@ taglib uri="/WEB-INF/jstl/fmt.tld" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/jstl/spring-form.tld" prefix="form"%>
<%@ taglib uri="/WEB-INF/jstl/spring.tld" prefix="spring"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>个人信息页面</title>

<!--标题图标-->
<link rel="shortcut icon" type="image/x-icon"
	href="<%=basePath%>assets/x-img/logo-title.ico" media="screen" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/css/resetPro.css">
<link
	href="<%=basePath%>assets/bootstrap/css/bootstrap-combined.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-2.0.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-ui.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.htmlClean.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/ckeditor.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/config.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/Font-Awesome-3.2.1/css/font-awesome.min.css">
<!--这个js有时候会冲突-->
<!--<script type="text/javascript" src="<%=basePath%>bootstrap/js/scripts.js"></script>-->
<link rel="stylesheet"
	href="<%=basePath%>assets/onedate/css/BeatPicker.min.css" />
<script src="<%=basePath%>assets/onedate/js/BeatPicker.min.js"></script>
<script src="<%=basePath%>assets/onedate/documents/js/prism.js"></script>

<style type="text/css">
a:hover {
	text-decoration: none !important;
}

.onedivPro {
	width: 320px;
	margin: 0px auto;
	margin-top: 22px;
}

.pzSpanClass {
	margin: 0 15px;
}

.pzClass {
	width: 55px;
	height: 25px;
}

.cheSpan {
	display: inline-block !important;
	min-width: 25px;
}

.keyinput {
	margin-bottom: 0px !important;
	height: 30px !important;
}

.datatable th,.datatable td {
	text-align: center !important;
	vertical-align: middle !important;
}

.foottable {
	border-top-width: 0px !important;
	margin-top: -21px !important;
}

.oneinput {
	margin-bottom: 0px !important;
	height: 30px !important;
}

.onediv {
	/* width: 290px; */
	margin: 0px auto;
	margin-top: 22px;
}

.toStrong {
	font-weight: 700;
}

.alldiv {
	width: 100%;
	margin: 0 auto;
	text-align: center;
}

.borderStrong {
	border: 5px solid #dee5e5;
}

.z5 {
	margin: 0 10px;
}

.z6 {
	margin-right: 10px;
}

.zerodiv {
	margin-top: 25px;
}

.fromdiv {
	width: 290px;
	margin: 0px auto;
	margin-top: 30px;
}

table {
	font-size: 80%;
}

.xspan {
	width: 23% !important;
	text-align: center; /*文字水平居中对齐*/
	line-height: 30px;
	font-size: 0.9em;
	margin-left: 0px !important;
	display: inline-block !important;
}

.xherounit {
	padding: 60px 0;
}
</style>
</head>
<body style="min-height: 660px; cursor: auto;" class="edit">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<!--引入Top导航-->
				<%@include file="shared/pageTop.jsp"%>
			</div>
		</div>
		<div class="row-fluid zerodiv">
			<div class="span12">
				<div class="row-fluid ">
					<div class="span4">
						<div class="hero-unit onediv">
							<h3 class="form-signin-heading text-center">
								<span class="icon-bookmark z5 "></span>个人信息
							</h3>
							<div class="control-group">
								<span class="z5">账号</span>: <span class="z5  toStrong">${member.id}</span>
							</div>
							<div class="control-group">
								<span class="z5">姓名</span>: <span class="z5 toStrong">${member.name}</span>
							</div>
							<div class="control-group">
								<span class="z5">性别</span>: <span class="z5 toStrong">${member.sex==1?'男':(member.sex==2?'女':'其他')}</span>
							</div>
							<div class="control-group">
								<span class="z5">生日</span>: <span class="z5  toStrong"><fmt:formatDate
										pattern="yyyy-MM-dd" value="${member.birthday}" /></span>
							</div>
							<div class="control-group">
								<span class="z5">余额</span>: <span class="z5 toStrong">${member.balance}&nbsp;(￥)</span>
							</div>
							<div class="control-group">
								<span class="z5">联系电话</span>: <span class="z5 toStrong">${member.tel}</span>
							</div>
							<div class="control-group">
								<span class="z5">联系地址</span>: <span class="z5 toStrong">${member.address}</span>
							</div>
							<div class="control-group">
								<span class="z5">个人说明</span>:
								<p class="z5  toStrong">&nbsp;&nbsp;&nbsp;&nbsp;
									${member.desc}</p>
							</div>

						</div>
					</div>
					<div class="span8">
						<div class="onediv">
							<div class="hero-unit xherounit">
								<h3 class="form-signin-heading text-center">
									<span class="icon-bookmark z5 "></span>历史订单信息
								</h3>
								<div class="">
									<table class="table table-bordered datatable">
										<thead style="background:#F5F5F5">
											<tr>
												<th>订单号</th>
												<th>商品简要信息</th>
												<th>收货电话</th>
												<th>收货地址</th>
												<th>商品数(件)</th>
												<th>花费(￥)</th>
												<th>生成时间</th>
												<th>详情</th>
											</tr>
										</thead>
										<c:choose>
											<c:when
												test="${(empty iOrderInfo) or (fn:length(iOrderInfo)<1)}">
												<h4 class="text-center text-error">[${empty member?'未登录':member.name}]订单信息为空
												</h4>
											</c:when>
											<c:otherwise>

												<tbody>
													<%
														int i = 0;
													%>
													<c:forEach items="${iOrderInfo}" var="order">

														<% i++;%>
														<tr class="<% if(i%2!=0){%>warning<%}else{%>info<%}%>">
															<td>${order.id}</td>
															<td>${order.desc}</td>
															<td>${order.tel}</td>
															<td>${order.address}</td>
															<td>${order.sum}</td>
															<td>${order.cost}</td>
															<td><fmt:formatDate pattern="yyyy-MM-dd"
																	value="${order.buyTime}" /></td>
															<td><a href="" class="btn btn-success"><span class=" icon-info-sign"></a></td>
														</tr>
													</c:forEach>
												</tbody>
											</c:otherwise>
										</c:choose>
									</table>
								</div>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>
	</div>
</body>
</html>
